<?php

namespace Controller\Ajax;

class Article extends Base {

    /**
     * 根据删除一条文章数据
     */
    public function del() {
        $id = $this->postInt('id');
        try {
            \Business\Article::instance()->delArticleById($id);
        } catch (\Lib\Exception\Business $e) {
            $this->responseError($e->getMessage());
        }
        $this->response('删除成功！');
    }
}